package com.zhiqihang.api;

import com.zhiqihang.order.Orders;
import com.zhiqihang.result.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName OrderApi
 * @Description Violet
 * @Author 86183
 * @Date 2024/7/16 21:25
 * @Version 1.0
 */
@Api(tags = "订单接口")
public interface OrderApi {

    @ApiOperation("查询订单")
    JsonResult findAll();

    @ApiOperation("添加订单")
    JsonResult add(Orders order);

    @ApiOperation("根据id查询课程")
    JsonResult findById(Integer id);
}
